export default {
  isLogin (state) {
    if (sessionStorage.getItem('admin')) {
      state.isLogin = true
    }
    return state.isLogin
  },
  currentAdmin (state) {
    if (!state.currentAdmin) {
      state.currentAdmin = sessionStorage.getItem('admin')
    }
    return state.currentAdmin
  }
}